#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START fuse-nfs
# depends: fuse
# depends: libnfs

reset_mtime fuse-nfs fuse-nfs/configure.ac
rm -rf build/fuse-nfs
mkdir -p build/fuse-nfs
cd build/fuse-nfs
../../fuse-nfs/configure \
	${CONFIGURE_ARGS} \
	--disable-static \
	--disable-silent-rules \
	${AUTOCRAP_KLUDGE}

make -j${JOBS}
make install DESTDIR=`pwd`/inst
wipe_la_files `pwd`/inst

cd inst
find "${prefix#/}" | cpio -pumd "$stage"
cd ../../..
# rm -rf build/fuse-nfs

# RECIPE END fuse-nfs
